<#macro pageView form>
	<table style="width:100%">
			<#if page.prePage><a href="#" onclick="submitGo(parseInt('${page.currentPage}')-1);return false;">上一页</a><#else>上一页</#if>
			<#if page.nextPage><a href="#" onclick="submitGo(parseInt('${page.currentPage}')+1);return false;">下一页</a><#else>下一页</#if>
				<#list page.showPageNums as xx>
					<#list xx as x>
						<#if page.currentPage==x>
							${x}
						<#else>
							<a href="#" onclick="submitGo('${x}');return false;"">${x}</a>
						</#if>
					</#list>
					<#if xx_index + 1 != page.showPageNums.size()>
						......
					</#if>
				</#list>
			共 ${page.totalPage} 页,${page.totalRecords} 条记录
			第 <input type="text" id="inputPage" name="page.currentPage" size="5" value="${page.currentPage}" onkeypress="return submitF(event);"/> 页
			<input type="button" value="跳转" class="submit" onclick="submitF();"/>
			<SCRIPT type="text/javascript" LANGUAGE="JavaScript">
				function submitF(event) {
					if (event == null || event.keyCode == 13) {
						var inputPage = $("#inputPage")[0].value;
						var currentPage = parseInt("${page.currentPage}", 10);
						if ((inputPage != currentPage) && (inputPage > 0) && (inputPage <= parseInt("${page.totalPage}", 10))) {
							$('#${form}').submit();
							return true;
						}
						else {
							$("#inputPage")[0].value = currentPage;
							return false;
						}
					}
					return true;
				}
				function submitGo(num) {
					var inputPage = $("#inputPage")[0].value;
					$("#inputPage")[0].value = num;
					$('#${form}').submit();
				}
			</SCRIPT>
	</table>
</#macro>
